import { defineStore } from 'pinia'



const useSystemSettingStore = defineStore('systemSetting', {
  state: () => {
    return {
      version: '1.0.3',
      systemSetting: {
        language: 'en',
        autoLock: false,
        theme: 'default',
        fontSize: 14
      },
      access_token: '',
    }
  },
  actions: {
    set(payload) {
      this.systemSetting = payload
    },
    setAccessToken(token: string) {
      this.access_token = token
    },
  }
})


export {
  useSystemSettingStore
}

